#include "AttchCTypeCond.h"

using namespace kc_sf;

// --------------------------------------------------------- //

AttchCTypeCond::AttchCTypeCond(
	const std::string &content_type,
	const std::string &content_subtype )
: c_content_type( content_type, content_subtype )
{
}

// --------------------------------------------------------- //

bool AttchCTypeCond::eval( const Attachment &attch )
{
	return attch.getContentType() == c_content_type;
}
